package com.qf.microuser.point.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.qf.common.core.entity.PointRule;
import com.qf.microuser.point.mapper.PointRuleMapper;
import com.qf.microuser.point.service.PointRuleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 天--道--酬--勤
 *
 * @author LiangGaoQiang
 * @ClassName PointRuleServiceImpl
 * @Date: 2025/5/28 14:32
 * @Description: 描述
 */
@Service
public class PointRuleServiceImpl implements PointRuleService {

    @Resource
    private PointRuleMapper pointRuleMapper;

    @Override
    public PointRule getPointByType(Integer pointType) {

        return pointRuleMapper.
                selectOne(Wrappers.lambdaQuery(PointRule.class).
                        eq(PointRule::getPointType, pointType));
    }
}
